const express = require('express')
const router = express.Router()
const video_handler=require("../router_handler/video")

// 1. 导入验证表单数据的中间件
const expressJoi = require('@escook/express-joi')
// 2. 导入需要的验证规则对象
const { video_list_schema,video_info_schema } = require('../schema/video')


router.post("/list",expressJoi(video_list_schema), video_handler.getList)
router.post("/info/:id",expressJoi(video_info_schema), video_handler.getInfo)
module.exports = router